/*
 * Description: This class adds format to the excel reports
 */

package exampleseverything.utils;

import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.Workbook;
/**
 * @creationDate Jan/15/2011
 * @author HellCoders
 */
public class Styles {

    /**
     * This method cretes a complete style for the Title Header
     * @param wb the Workbook that is needed in order to create the CellStyle
     * @return style color, font & alignment for the main Title Header
     */
    public static CellStyle titleHeader(Workbook wb) {
        CellStyle style = wb.createCellStyle();
        Font fnt = wb.createFont();
        fnt.setBoldweight(Font.BOLDWEIGHT_BOLD);
        fnt.setColor(IndexedColors.WHITE.getIndex());
        fnt.setFontHeightInPoints((short)18);
        style.setFont(fnt);
        style.setFillForegroundColor(IndexedColors.LIGHT_BLUE.getIndex());
        style.setFillPattern(IndexedColors.LIGHT_BLUE.getIndex());
        style.setAlignment(CellStyle.ALIGN_CENTER);
        return style;
    }

    public static CellStyle columnHeader(Workbook wb) {
        CellStyle style = wb.createCellStyle();
        //TODO create font style for the columns' headers
        return style;
    }

    public static CellStyle columnName(Workbook wb) {
        CellStyle style = wb.createCellStyle();
        //TODO create style for the names column
        return style;
    }

    public static CellStyle columnLastName(Workbook wb) {
        CellStyle style = wb.createCellStyle();
        //TODO create style for last name column
        return style;
    }
}
